home *** CD-ROM | disk | FTP | other *** search
- property pMySprite, pMyMember, pMyMember2
- global gPatternScreenBlend
-
- on beginSprite me
- pMySprite = sprite(me.spriteNum)
- pMyMember = pMySprite.memberNum
- pMyMember2 = pMyMember - 1
- end
-
- on mouseEnter me
- case the currentSpriteNum of
- "163":
- put "Click to increase the screen's opacity." into field "status"
- "164":
- put "Click to decrease the screen's opacity." into field "status"
- end case
- end
-
- on mouseLeave me
- put EMPTY into field "status"
- end
-
- on mouseDown me
- set the memberNum of sprite pMySprite to pMyMember2
- case the currentSpriteNum of
- "163":
- patternScreenOpacityUp()
- "164":
- patternScreenOpacityDown()
- end case
- updateStage()
- myStartTime = the milliSeconds
- myTimeLength = 1000
- repeat while the mouseDown
- if the milliSeconds < (myStartTime + myTimeLength) then
- set the memberNum of sprite pMySprite to pMyMember2
- updateStage()
- next repeat
- end if
- set the memberNum of sprite pMySprite to pMyMember2
- case the currentSpriteNum of
- "163":
- patternScreenOpacityUp()
- "164":
- patternScreenOpacityDown()
- end case
- myStartTime = the milliSeconds
- myTimeLength = 50
- updateStage()
- end repeat
- end
-
- on mouseUp me
- set the memberNum of sprite pMySprite to pMyMember
- end
-
- on patternScreenOpacityDown
- if the text of field "pattern screen opacity" = "1" then
- nothing()
- else
- set the text of field "pattern screen opacity" to string(integer(the text of field "pattern screen opacity") - 1)
- sprite(235).blend = integer(the text of field "pattern screen opacity")
- gPatternScreenBlend = sprite(235).blend
- end if
- end
-
- on patternScreenOpacityUp
- if the text of field "pattern screen opacity" = "100" then
- nothing()
- else
- set the text of field "pattern screen opacity" to string(integer(the text of field "pattern screen opacity") + 1)
- sprite(235).blend = integer(the text of field "pattern screen opacity")
- gPatternScreenBlend = sprite(235).blend
- end if
- end
-